import { ipcRenderer } from 'electron'

export const openDebug = (devUrl: string) => {
    ipcRenderer.invoke('open-debug', devUrl)
}

export const onAppClose = (fn: () => void) => {
    ipcRenderer.on('app-close', () => {
        fn()
    })
}